using System;
using System.Collections.Generic;
using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.Business;

[SugarTable("BillTemplate", "帐单模板")]
[SysTable]
public class BillTemplate : EntityTenant
{
	/// <summary>
	/// 账单模板名称
	/// </summary>
	public string Name { get; set; }

	/// <summary>
	/// 费用类型
	/// </summary>
	[SugarColumn(IsJson = true, ColumnDataType = "jsonb", IsNullable = true)]
	public List<long> BillTypes { get; set; }

	/// <summary>
	/// 催缴规则0断电，1限制缴费，2余额抵扣
	/// </summary>
	public int CallRules { get; set; }

	/// <summary>
	/// 限制缴费金额
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? LimitAmount { get; set; }

	/// <summary>
	/// 滞纳金 ..%
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? LateFee { get; set; }

	/// <summary>
	/// 截止日期
	/// </summary>
	public DateTime ExpiryDate { get; set; }

	/// <summary>
	/// 计划状态，0待执行，1已执行
	/// </summary>
	public int Status { get; set; }

	/// <summary>
	/// 执行时间
	/// </summary>
	public DateTime ExecuteTime { get; set; }
}
